# -*- coding: utf-8 -*-

DJANGO_CONF_MODULE = "config.default"

try:
    _module = __import__(DJANGO_CONF_MODULE, globals(), locals(), ["*"])
except ImportError as err:
    raise ImportError(
        "Could not import config '%s' (Is it on sys.path?): %s"
        % (DJANGO_CONF_MODULE, err)
    )

for _setting in dir(_module):
    if _setting == _setting.upper():
        locals()[_setting] = getattr(_module, _setting)

ADMIN_CONF_MODULE = "config.admin"

# try:
#     _module = __import__(ADMIN_CONF_MODULE, globals(), locals(), ["*"])
# except ImportError as err:
#     raise ImportError(
#         "Could not import config '%s' (Is it on sys.path?): %s"
#         % (ADMIN_CONF_MODULE, err)
#     )
#
# for _setting in dir(_module):
#     if _setting == _setting.upper():
#         locals()[_setting] = getattr(_module, _setting)
